﻿using WMS.FC.Domain.DomainObject.System;

namespace WMS.FC.Infrastructure.Common
{
    public static class WmsSettingHelper
    {
        public static string GetOracleConnecitonString(this WmsSettings settings)
        {
            return $"Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = {settings.DatabaseConfig.Host})(PORT = {settings.DatabaseConfig.Port})))(CONNECT_DATA =(SID = {settings.DatabaseConfig.Database})(SERVER = DEDICATED)));User Id={settings.DatabaseConfig.UserName};Password={settings.DatabaseConfig.Password};Pooling=false;";
        }
    }
}
